
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
   <!-- 模板继承-->
   {%extends "base.html" %}
    {% block mainbody %}
    <p>继承了 base.html 文件</p>
    {% endblock %}

   {% load static %}
   {{name}}<img src="{% static 'images/runoob-logo.jpg' %}" alt="runoob-logo">
</body>
</html>